import 'virtual:svg-icons-register'
import { addIcon, addCollection } from '@iconify/vue'
import epIcons from '@iconify/json/json/ep.json'
import faIcons from '@iconify/json/json/fa.json'
import faSolidIcons from '@iconify/json/json/fa-solid.json'
// import ionIcons from '@iconify/json/json/ion.json'
// import emojioneMonotoneIcons from '@iconify/json/json/emojione-monotone.json'
import icons from './icons-custom'

// 基于离线环境注册图标库
addCollection(epIcons)
addCollection(faIcons)
addCollection(faSolidIcons)

// 自定义icon
icons.forEach(icon => {
  addIcon(icon.name, icon.config)
})
